<!DOCTYPE  HTML  PUBLIC  "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
      <head>
            <title></title>
            <meta  name="GENERATOR"  content="Microsoft Visual Studio .NET
7.1">
            <meta  name="vs_targetSchema"
 content="http://schemas.microsoft.com/intellisense/ie5">
      <script id="clientEventHandlersJS" type="text/javascript" runat="server">
<!--


function Button1_onclick()
{
	var fso, f, f1, fc, s;
	fso = new ActiveXObject("Scripting.FileSystemObject");
	f = fso.GetFolder(folderspec);
	fc = new Enumerator(f.files);
	s = "";
	for (; !fc.atEnd(); fc.moveNext())
	{

		s += fc.item().name + ",";

	}
	
	//take care of the comma as the last character
	s = s.slice(0, s.length - 1);
	return(s);

}

function OLDButton1_onclick()
{
      var locator = new ActiveXObject("WbemScripting.SWbemLocator");
      var service = locator.ConnectServer(".");
      var properties = service.ExecQuery("SELECT * FROM Win32_LogicalDisk");
      var e = new Enumerator (properties);
      for (;!e.atEnd();e.moveNext ())
      {
            var p = e.item ();
            document.write("Drive: " + p.Name + " -> Size: " + p.Size + "<br>");
      }
}


//-->
</script>
</head>
      <body>
          <input id="Button1" type="button" value="Button" name="Button1" onclick="return Button1_onclick()"/>
      </body>
</html>

